package com.gitee.kamismile.stone.basic.data.domain.sysDep.repository.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.util.Date;
import java.util.Objects;

@Table(name = "sys_dep")
public class SysDep {
    @Id
    private Integer nSysDepId;
    private String sName;
    private String sDesc;
    private Integer nLayer;
    private Integer nOrder;
    private String sPath;
    private Integer nParentId;
    private String sIslast;
    private Integer nTenantId;
    private Integer nCreateBy;
    private Integer nUpdateBy;
    private Date dCreateTime;
    private Date dUpdateTime;

    public Integer getnSysDepId() {
        return nSysDepId;
    }

    public void setnSysDepId(Integer nSysDepId) {
        this.nSysDepId = nSysDepId;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public String getsDesc() {
        return sDesc;
    }

    public void setsDesc(String sDesc) {
        this.sDesc = sDesc;
    }

    public Integer getnLayer() {
        return nLayer;
    }

    public void setnLayer(Integer nLayer) {
        this.nLayer = nLayer;
    }

    public Integer getnOrder() {
        return nOrder;
    }

    public void setnOrder(Integer nOrder) {
        this.nOrder = nOrder;
    }

    public String getsPath() {
        return sPath;
    }

    public void setsPath(String sPath) {
        this.sPath = sPath;
    }

    public Integer getnParentId() {
        return nParentId;
    }

    public void setnParentId(Integer nParentId) {
        this.nParentId = nParentId;
    }

    public String getsIslast() {
        return sIslast;
    }

    public void setsIslast(String sIslast) {
        this.sIslast = sIslast;
    }

    public Integer getnTenantId() {
        return nTenantId;
    }

    public void setnTenantId(Integer nTenantId) {
        this.nTenantId = nTenantId;
    }

    public Integer getnCreateBy() {
        return nCreateBy;
    }

    public void setnCreateBy(Integer nCreateBy) {
        this.nCreateBy = nCreateBy;
    }

    public Integer getnUpdateBy() {
        return nUpdateBy;
    }

    public void setnUpdateBy(Integer nUpdateBy) {
        this.nUpdateBy = nUpdateBy;
    }

    public Date getdCreateTime() {
        return dCreateTime;
    }

    public void setdCreateTime(Date dCreateTime) {
        this.dCreateTime = dCreateTime;
    }

    public Date getdUpdateTime() {
        return dUpdateTime;
    }

    public void setdUpdateTime(Date dUpdateTime) {
        this.dUpdateTime = dUpdateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysDep sysDep = (SysDep) o;
        return Objects.equals(nSysDepId, sysDep.nSysDepId) && Objects.equals(sName, sysDep.sName) && Objects.equals(sDesc, sysDep.sDesc) && Objects.equals(nLayer, sysDep.nLayer) && Objects.equals(nOrder, sysDep.nOrder) && Objects.equals(sPath, sysDep.sPath) && Objects.equals(nParentId, sysDep.nParentId) && Objects.equals(sIslast, sysDep.sIslast) && Objects.equals(nTenantId, sysDep.nTenantId) && Objects.equals(nCreateBy, sysDep.nCreateBy) && Objects.equals(nUpdateBy, sysDep.nUpdateBy) && Objects.equals(dCreateTime, sysDep.dCreateTime) && Objects.equals(dUpdateTime, sysDep.dUpdateTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(nSysDepId, sName, sDesc, nLayer, nOrder, sPath, nParentId, sIslast, nTenantId, nCreateBy, nUpdateBy, dCreateTime, dUpdateTime);
    }
}
